package com.kuang.demo.bean.wx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ACG
 * @date 2020-11-04 22:34
 */
public class ShoppingCartIndexData {

    /**
     * cartTotal : {"goodsCount":1,"checkedGoodsCount":1,"goodsAmount":2998,"checkedGoodsAmount":2998}
     * cartList : [{"id":556,"userId":3,"goodsId":1181132,"goodsSn":"1123","goodsName":"大屏电视","productId":665,"price":2998,"number":1,"specifications":["3kg"],"checked":true,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/j8958jwztf6mw3qyw6hr.jpg","addTime":"2020-11-04 22:15:17","updateTime":"2020-11-04 22:15:17","deleted":false}]
     */

    private CartTotalBean cartTotal;
    private List<CartListBean> cartList;

    public CartTotalBean getCartTotal() {
        return cartTotal;
    }

    public void setCartTotal(CartTotalBean cartTotal) {
        this.cartTotal = cartTotal;
    }

    public List<CartListBean> getCartList() {
        return cartList;
    }

    public void setCartList(List<CartListBean> cartList) {
        this.cartList = cartList;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CartTotalBean {
        /**
         * goodsCount : 1
         * checkedGoodsCount : 1
         * goodsAmount : 2998
         * checkedGoodsAmount : 2998
         */

        private int goodsCount;
        private int checkedGoodsCount;
        private int goodsAmount;
        private int checkedGoodsAmount;


    }

    public static class CartListBean {
        /**
         * id : 556
         * userId : 3
         * goodsId : 1181132
         * goodsSn : 1123
         * goodsName : 大屏电视
         * productId : 665
         * price : 2998
         * number : 1
         * specifications : ["3kg"]
         * checked : true
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/j8958jwztf6mw3qyw6hr.jpg
         * addTime : 2020-11-04 22:15:17
         * updateTime : 2020-11-04 22:15:17
         * deleted : false
         */

        private int id;
        private int userId;
        private int goodsId;
        private String goodsSn;
        private String goodsName;
        private int productId;
        private int price;
        private int number;
        private boolean checked;
        private String picUrl;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> specifications;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(int goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsSn() {
            return goodsSn;
        }

        public void setGoodsSn(String goodsSn) {
            this.goodsSn = goodsSn;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public boolean isDeleted() {
            return deleted;
        }

        public void setDeleted(boolean deleted) {
            this.deleted = deleted;
        }

        public List<String> getSpecifications() {
            return specifications;
        }

        public void setSpecifications(List<String> specifications) {
            this.specifications = specifications;
        }
    }
}
